package com.example.demo.entity.DTO;

import com.example.demo.entity.GoodsImg;
import com.example.demo.entity.GoodsType;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.List;

@Data
public class GoodsDTO {
    @ApiModelProperty("商品ID")
    private Integer goodsId;

    @ApiModelProperty("商品名称")
    private String goodsName;

    @ApiModelProperty("商品销量")
    private Integer goodsSales;

    @ApiModelProperty("商品库存")
    private Integer goodsInventory;

    @ApiModelProperty("发货地址")
    private String goodsAddress;

    @ApiModelProperty("生产日期")
    private LocalDate goodsTime;

    @ApiModelProperty("保质日期")
    private LocalDate goodsOutTime;

    @ApiModelProperty("重量")
    private Double goodsWeight;

    @ApiModelProperty("商品详细")
    private String goodsInfo;

    @ApiModelProperty("价格")
    private BigDecimal goodsPrice;

    @ApiModelProperty("上下架状态 0下架 1上架 2 缺货")
    private Integer goodsFlag;

    @ApiModelProperty("商品类型")
    private GoodsType goodsType;

    @ApiModelProperty("商品图片")
    private List<GoodsImg> goodsImgs;
}
